package com.myjaveStatic;

import java.security.ProtectionDomain;
import java.util.Scanner;

public class StaticDemo1 {
    public static void main(String[] args) {
       /* Scanner sc = new Scanner(System.in);
        System.out.println("请输入字符");
        String str = sc.next();
        System.out.println(str.toString());*/
        int [] arr={1,0,2,4,3,6,7};
        //n个数的和
        int res=(arr.length+1)*(arr.length)/2;
        int sum=0;
        //遍历数组，取出数组的值相加
        for (int i:arr) {
             sum=sum+i;
        }
        System.out.println(res-sum);
    }
}
